package com.youlu.campus.entity;

import com.youlu.campus.base.base.EntityBase;
import com.youlu.campus.entity.enums.TaskBizType;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Transient;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 订单统计
 */
@Getter
@Setter
@Document(collection = "order_statistics")
public class OrderStatistics extends EntityBase {
    @Indexed
    private String activityId;
    private String activityName;
    private TaskBizType taskBizType;
    private Integer num;
    private Integer numJia;
    private Double gmv = 0D;
    private Double gmvJia = 0D;
    @Indexed
    private Double price;
    private String itemId;
    @Indexed
    private String itemName;
    @Transient
    private String gmvRatio;
    @Transient
    private String numRatio;
    /**
     * 退款数量
     */
    private Integer refundNum = 0;
    /**
     * 退款GMV
     */
    private Double refundGmv = 0.0D;
    /**
     * 退款比例
     */
    @Transient
    private String refundRatio;
}
